package com.ruoyi.web.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ApiModel("监控区域VO")
public class MonitorAreaVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    private Long baseId;

    @ApiModelProperty("区域名称")
    private String baseName;

    @ApiModelProperty("上级区域ID")
    private Long baseParentId;

    @ApiModelProperty("祖级列表")
    private String ancestors;

    @ApiModelProperty("顺序")
    private Integer sort;

    @ApiModelProperty("创建者")
    private Long creator;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("更新者")
    private Long modifier;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @ApiModelProperty("播流域名")
    private String domain;

    private String appName;

    private String streamName;

    @ApiModelProperty("摄像机状态 online在线   offline异常")
    private String cameraStatus;

    /**
     * '1'：监控区域，'2'：监控摄像头
     */
    @ApiModelProperty("所属类型")
    private String type;
}
